Programmaticly launch "Safely Remove Hardware" dialog box in Windows-7
In Windows XP using the following command opens the "Safely Remove Hardware" dialog box, and you can successfully disconnect a device. Rundll32.exe Shell32.dll,Control_RunDLL HotPlug.dll However, running the same command in Windows-7 (64-bit) launches the same dialog box, but when you try to disconnect, you get the "The xxx USB Device is not removeable and cannot be ejected or unplugged" error message. It seems that under Windows-7 this function is done by DeviceDisplayObjectProvider.exe, but when I try to run it at the command level, it doesn't launch any dialog box. How can I launch this program (e.g. from VBS), or any other method that I programmaticly remove a USB devise.
June 15th, 2011 6:46pm

try this update http://support.microsoft.com/kb/936824Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
June 17th, 2011 12:47am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics